package xyz.lwm.lazycat.web.handle;

import org.jetbrains.annotations.NotNull;

/**
 * json mapper, register into beans context
 *
 * @author lwm
 */
public interface JsonMapper {

    @NotNull
    byte[] toJsonBytes(@NotNull Object obj);

    @NotNull
    <T> T fromJsonBytes(@NotNull byte[] json, @NotNull Class<T> clazz);

}
